<template>
  <div>
    <!--  <textarea v-model="val">Child3</textarea>-->
    <label v-for="r in pval" :key="r.value">
      <input type="radio" v-model="val" :value="r.value">{{ r.label }}
    </label>
  </div>
</template>

<script>
export default {
  name: 'Child3',
  props: {
    pval: {
      type: Array,
      default: () => []
    },
    defVal:{
      type:Number,
    }

  },
  data() {
    return {
      val: this.defVal
    }
  },
  watch: {
    val(nval) {
      this.$emit("input", nval)
    }
  }
}
</script>

<style scoped lang="scss">

</style>
